package com.example.yuejian23.yuejian_23.model;

import com.example.yuejian23.yuejian_23.service.FatieService;
import com.example.yuejian23.yuejian_23.service.ShaituService;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by dong on 2017/11/2.
 */

public class PinglunModel {
    private Retrofit retrofit;
    public PinglunModel(){
        retrofit  = new Retrofit.Builder()
                .baseUrl("http://115.159.93.244/new18yuejian/api.php/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public retrofit2.Call pinglun(String uid,String pid,String rptext)
    {
        ShaituService shaituService=retrofit.create(ShaituService.class);
        return shaituService.ping(uid,pid,rptext);
    }
}
